
import request from '../../utils/reuqst'
export const setTemp = (data) => request({url:'/temp/insert',method:'post',data});
export const callServer = (data) => request({url:'/server/insert',method:'post',data});
export const select = (data) => request({url:'/temp/select',method:'post',data});


export const requYiQing = () => request({url:'/yiqing',method:'get'});

export const reqLogin = (data) => request({url:'/guest/login',method:'post',data});

// export const reqGetguest = ( data ) => request ({url:`/guest/find/guest/${data}`});

//获取所有未住房间
export const reqfindAllTable = () => request({url:'/table',mdthod:'get'})

// export const reqaddTables = (data) => request({url:'/table/beysucc',method:'post',data});

export const reqfindAllroomType = () => request({url:'/roomType',method:'get'});


//提交打卡温度信息
export const reqaddPunch = (data) => request({url:'/punch/addPunch',method:'post',data});



//查询今天打卡是否通过
export const reqPunchFindPass = (id) => request({url:`/punch/find/pass/${id}`,method:'get'});



//疫情14天入住
// export const reqTableYiqingruzhu = (data) => request({url:'/table/yiqingruzhu',method:'post',data});

export const reqTableYiqingruzhu = (data,is) => {
    if(is == true){
        return  request({url:'/table/yiqingruzhu',method:'post',data});
    }else{
        return request({url:'/table/beysucc',method:'post',data});
    }
}